package com.summer.shopping.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.summer.shopping.domain.table.SecondaryCategory;
import com.summer.shopping.domain.table.dto.SecondaryDTO;
import com.summer.shopping.mapper.SecondaryCgMapper;
import com.summer.shopping.utils.Result;

import java.util.List;

/**
 * ClassName:
 * Package:
 * Description:
 *
 * @Author: 陈三岁
 * @Create
 * @Version
 */
public interface SecondaryCgService  extends IService<SecondaryCategory> {
    /**
     * 二级分类名称查询
     * @param parentId
     * @return
     */
    List<SecondaryCategory> selectByCgId(Long parentId );

    void saveSCg(SecondaryDTO secondaryDTO);

    Result deleteById(Long id);
}
